﻿namespace PLCSharpWpf.Packml
{
    public class MaterialInterlock
    {
        private readonly bool[] bits = new bool[32];

        public MaterialInterlock()
        {
        }

        public bool this[int index]
        {
            get
            {
                if ( index >= 0 && index <= 31 )

                    return bits[index];
                else
                    return false;
            }
            set
            {
                if ( index >= 0 && index <= 31 )

                    bits[index] = value;
            }
        }
    }
}